
let yarrx = ['当日新增', '现有确诊'];

var ec_left1 = echarts.init(document.getElementById('l1'),'macarons');
var ec_left1_Option = {

    title : {
	    text : "全国疫情趋势",
	    textStyle : {
	        color : 'white',
	    },
	    left : 'left'
	},

    legend: {
        type: 'scroll',
        right: '60',
        selectedMode: 'single',
        bottom: '3%',
        left: 'center',
        inactiveColor: '#666',
        textStyle: {
            // color: '#aaa',
            color: '#fff',
        },
        // selected: selectedObj,
        selected: [],
        top:20
    },
    tooltip: {
        trigger: 'axis',
        show: true,
        top:20
    },


    grid: {
        left: 0,
        right: 15,
        bottom: '0%',
        containLabel: true,
    },
    xAxis: {
        type: 'category',
        data: [],
        axisTick: {
            show: false,
        },
        axisLine: {
            color: 'rgba(255,255,255,0.6)',
        },
        axisLabel: {
            margin: 30,
            textStyle: {
                color:'#fff',
            },
        },
        splitLine: {
            show: true,
            lineStyle: {
                type: 'solid',
                color: 'rgba(255,255,255,0.1)',
            },
        },
    },
    yAxis: {
        type: 'value',
        axisTick: {
            show: false,
        },
        axisLine: {
            lineStyle: {
                color: '#57617B'
            }
        },
        axisLabel: {
            show: true,
            margin: 30,
            color: '#fff',
            fontSize: 12,
			formatter: function(value) {
				if (value >= 1000) {
					value = value / 1000 + 'k';
				}
				return value;
			}
        },

        splitLine: {
            lineStyle: {
                type: 'dashed',
                color: 'rgba(255,255,255,0.1)',
            },
        },
    },
    color: [],

};

ec_left1.setOption(ec_left1_Option)

window.addEventListener("resize", function () {
    ec_left1.resize();
});